package com.fbs.wowo.essay.mapper;

import com.fbs.wowo.essay.entity.*;
import com.fbs.wowo.essay.vo.EssayQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EssayMapper {

    int insertSelective(Essay record);

    List<EssayListResponse> findRecommendList();

    Essay findEssayByHash(@Param("userId")String userId,@Param("hashValue")String hashValue);






    int deleteByPrimaryKey(String id);

    int insert(Essay record);

    Essay selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Essay record);

    int updateByPrimaryKey(Essay record);

    List<EssayListResponse> queryEssayList(EssayQuery essayQuery);

    EssayInfoResponse findEssayInfo(String essayId);

    EssayNumResponse findMyEssayNum(String userId);

    int findAlbumToEssayNumByAlbumId(String albumId);

    List<UserNameListResponse> confirmedUserList();

    //别人主页
    UserHomeResponse findUserHomeByUserId(String userId);

    //个人主页
    OneselfHomeResponse oneselfHomeByUserId(String userId);

    List<EssayListResponse> findEssayByClassifyId(@Param("classifyId") String classifyId,@Param("type") int type);


}